<?php

// $Id$

require_once($WSC->get_site_inc_dir().'modules/admin_panel/site_admin_ajax_grid_ctrl_ua.class.php');
require_once('ci_attachment_select_grid_ctrl.class.php');


class CI_Attachment_Select_Grid_Ajax_Ctrl extends Site_Admin_Ajax_Grid_Ctrl_UA {
	protected function init_transit_vars() {
		$this->add_transit_var('category');
		$this->add_transit_var('ci');
		$this->add_transit_var('vpage');
	}


	protected function create_grid_ctrl() {
		$tvm = $this->get_tvm();

		$ci_id = $this->get_transit_var('ci');
		$this->export('ci_id', $ci_id);

		$ret = new CI_Attachment_Select_Grid_Ctrl('ci_attachment_select', $tvm, Tangra_Parameter_Method::GET, $ci_id);

		return $ret;
	}
}